/**
 * 
 */
package org.youisoft.summer.evaluator.function.ext;
import org.youisoft.summer.evaluator.context.CalContext;
import org.youisoft.summer.evaluator.function.AbstractFunction;
import org.youisoft.summer.evaluator.operator.Operator;
import org.youisoft.summer.evaluator.operator.base.NumberOperator;

/**
 * @author zijiang.jl
 *
 */
public class RandomFunction extends AbstractFunction{

	@Override
	public String getName() {
		return "random";
	}


	@Override
	public <C,R,P> Operator<?> doInvoke(CalContext<C,R,P> context,Operator<?>... operator) {
		return new NumberOperator(java.lang.StrictMath.random());
	}
}